package com.zhenhao.xsq.ui.activity.home.presenter;



import com.zhenhao.xsq.data.api.HttpAPIWrapper;
import com.zhenhao.xsq.ui.activity.home.MineFragment;
import com.zhenhao.xsq.ui.activity.home.contract.MineContract;

import java.util.Map;

import javax.inject.Inject;

import androidx.annotation.NonNull;
import io.reactivex.disposables.CompositeDisposable;
import io.reactivex.disposables.Disposable;
import io.reactivex.functions.Action;
import io.reactivex.functions.Consumer;

/**
 * @author xlei
 * @Package com.cxwl.xlxgj.ui.activity.home
 * @Description: presenter of MineFragment
 * @date 2019/01/15 10:41:56
 */
public class MinePresenter implements MineContract.MineContractPresenter {

    HttpAPIWrapper httpAPIWrapper;
    private final MineContract.View mView;
    private CompositeDisposable mCompositeDisposable;
    private MineFragment mFragment;

    @Inject
    public MinePresenter(@NonNull HttpAPIWrapper httpAPIWrapper, @NonNull MineContract.View
            view, MineFragment fragment) {
        mView = view;
        this.httpAPIWrapper = httpAPIWrapper;
        mCompositeDisposable = new CompositeDisposable();
        this.mFragment = fragment;
    }

    @Override
    public void subscribe() {

    }

    @Override
    public void unsubscribe() {
        if (!mCompositeDisposable.isDisposed()) {
            mCompositeDisposable.dispose();
        }
    }

}